<!DOCTYPE html>
<html>
 {{{ html.header(out) }}}
<body>

{{{ html.navbar(out,"/web/quickApps") }}}

<div class="container overflow-hidden">
  <div class="row gy-5"><h4>QuickApps</h4></div>
  
  <form id="x" action="/TQAE/updateQA" method="GET">
  
  <button type="submit" class="btn btn-primary" formaction="/TQAE/deleteQA">Delete</button>

{{{
  local function iBoolean(i,name)
      out([[<div class="form-check">
            <label class="form-check-label" for="%s">%s</label>
            <input class="form-check-input" value="%s" type="checkbox" role="switch" name="%s" id="%s">
            </div>]],i,name,name,i,i)
  end
  
  local qs = FB.api.get("/devices?interface=quickApp","remote")
  for i,qa in ipairs(qs or {}) do 
    iBoolean(i,qa.name)
  end
}}}
</form>
</div>

{{{ html.footer(out) }}}
</body>
</html>